import json
import tornado.web

class BaseHandler(tornado.web.RequestHandler):
    def __init__(self, *argc, **argkw):
        super(BaseHandler, self).__init__(*argc, **argkw)

    def parse_argument(self, arg):
        return json.loads(self.request.body.decode('utf-8'))[arg]
